package com.fs.common.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fs.common.annotation.ColumnDesc;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author ACE
 * @desc 角色实体类
 * @creationTime 2019-03-30 15:00
 * @projectName weixinframe
 * @packageName com.fs.pojo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_role")
@EqualsAndHashCode(callSuper=false)
public class Role extends IdEntity {
	public static final Integer ORDINARY_ROLES = 0; //普通角色

	public static final Integer SYSADM_ROLES = 1;	//超级管理员

	public static final Integer YUE_ZI_ROLES = 2; //月子中心角色

	@ColumnDesc(name="角色名称")
	private String roleName;

	@ColumnDesc(name="角色描述")
	private String roleDesc;

	@ColumnDesc(name="组织编码")
	private String orgNo;

	@ColumnDesc(name="企业ID")
	private String comId;

	/**
	 * 0、普通角色 1、超级管理员 2、月子中心角色
	 */
	@ColumnDesc(name="角色标识")
	private Integer roleCode = 0;

	@TableField(exist = false,fill = FieldFill.DEFAULT)
	private String nickName;
}
